package com.ruoyi.web.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 广告对象 ad
 * 
 * @author ruoyi
 * @date 2022-03-10
 */
public class Ad extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 广告类型：5g_scenes：5G场景营销，5g_member：5g会员营销 */
    @Excel(name = "广告类型：5g_scenes：5G场景营销，5g_member：5g会员营销")
    private String type;

    /** 广告主名下签名ID，type为5g_member时不能为空 */
    @Excel(name = "广告主名下签名ID，type为5g_member时不能为空")
    private Long smsSignatureId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** -1-删除，0-草稿，1-启用，2-暂停，3-停止，4-待审核，5-审核被拒，6-流量主被拒，7-流量主终止 */
    @Excel(name = "-1-删除，0-草稿，1-启用，2-暂停，3-停止，4-待审核，5-审核被拒，6-流量主被拒，7-流量主终止")
    private Integer status;

    /** 提审时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提审时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 通过审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "通过审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setSmsSignatureId(Long smsSignatureId) 
    {
        this.smsSignatureId = smsSignatureId;
    }

    public Long getSmsSignatureId() 
    {
        return smsSignatureId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setSubmitTime(Date submitTime) 
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() 
    {
        return submitTime;
    }
    public void setApprovedTime(Date approvedTime) 
    {
        this.approvedTime = approvedTime;
    }

    public Date getApprovedTime() 
    {
        return approvedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("type", getType())
            .append("smsSignatureId", getSmsSignatureId())
            .append("userId", getUserId())
            .append("status", getStatus())
            .append("submitTime", getSubmitTime())
            .append("approvedTime", getApprovedTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
